<template>
  <div
    class="swiper-item--wrapper"
    v-show="ready"
  >
    <div class="swiper-item">
      <slot></slot>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'SwiperItem',
    props: {
      name: String,
      label: {
        type: [String, Number],
        default: ''
      }
    },
    data () {
      return {
        ready: true
      }
    },
    methods: {
    },
    mounted () {
      this.$parent && this.$parent.updateItems()
    },
    destroyed () {
      this.$parent && this.$parent.updateItems()
    }
  }
</script>
